package com.lz.yz.outing.service;


import com.lz.yz.outing.util.SmsMessage;

public interface SmsService {
    /**
     * 发送同步短信
     */
    Boolean sendSyncSms(SmsMessage msg);

    /**
     * 验证短信验证码
     *
     * @param phone
     * @param validCode
     * @return true or false
     */
    Boolean validCode(String phone, String validCode);

    /**
     * 生成验证码
     *
     * @return validateCode
     */
    String generateValidateCode();
}
